package com.neusoft.SPNursingHome.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

// 客户床位更换历史记录实体类
@TableName("bed_record")
public class BedRecord {
    @TableId(value = "bed_record_id", type = IdType.AUTO)
    // 床位使用记录ID (主键)
    private Integer bedRecordId;

    // 客户ID (外键)
    private Integer clientId;

    // 床位ID (外键)
    private Integer bedId;

    // 使用开始时间
    private Date bedBeginTime;

    // 使用结束时间
    private Date bedEndTime;

    // 使用状态 (0, 1) (使用历史/使用中)
    private Integer bedRecordStatus;

    // 构造函数
    public BedRecord() {
    }

    // Getters 和 Setters
    public Integer getBedRecordId() { return bedRecordId; }
    public void setBedRecordId(Integer bedRecordId) { this.bedRecordId = bedRecordId; }
    public Integer getClientId() { return clientId; }
    public void setClientId(Integer clientId) { this.clientId = clientId; }
    public Date getBedBeginTime() { return bedBeginTime; }
    public void setBedBeginTime(Date bedBeginTime) { this.bedBeginTime = bedBeginTime; }
    public Date getBedEndTime() { return bedEndTime; }
    public void setBedEndTime(Date bedEndTime) { this.bedEndTime = bedEndTime; }
    public Integer getBedRecordStatus() { return bedRecordStatus; }
    public void setBedRecordStatus(Integer bedRecordStatus) { this.bedRecordStatus = bedRecordStatus; }

    public Integer getBedId() {
        return bedId;
    }

    public void setBedId(Integer bedId) {
        this.bedId = bedId;
    }

    @Override
    public String toString() {
        return "BedRecord{" +
                "bedRecordId=" + bedRecordId +
                ", clientId=" + clientId +
                ", bedId=" + bedId +
                ", bedBeginTime=" + bedBeginTime +
                ", bedEndTime=" + bedEndTime +
                ", bedRecordStatus=" + bedRecordStatus +
                '}';
    }
}
